<div id="content">
  <h1>Games</h1>

  <table class="ajaxTable" id="gameTable">
  <thead>
    <tr>
      <th>Finished at</th>
      <th>Name</th>
      <th>Map</th>
      <th>Duration</th>
    </tr>
  </thead>
  <tbody>
  <?php foreach ($pager->getResults() as $game): ?>
    <tr>
      <td><?php echo $game->datetime; ?></td>
      <td><?php echo $game->gamename; ?></td>
      <td><?php echo $game->niceMap; ?></td>
      <td><?php echo $game->shortDuration; ?></td>
    </tr>
  <?php endforeach; ?>
  </tbody>
  </table>
</div>